package com.example.mydy.model;

import java.util.Date;

/**
 * 提现申请数据模型
 */
public class WithdrawalRequest {
    private int id;
    private int userId;
    private String username;
    private String userNickname;
    private String userAvatar;
    private String realName;
    private String alipayAccount;
    private double amount;
    private String status; // PENDING(待处理), APPROVED(已通过), REJECTED(已拒绝)
    private Date requestTime;
    private Date processTime;
    private String remark;

    public WithdrawalRequest() {
    }

    public WithdrawalRequest(int id, int userId, String username, String userNickname, String realName, 
                             String alipayAccount, double amount, String status, Date requestTime) {
        this.id = id;
        this.userId = userId;
        this.username = username;
        this.userNickname = userNickname;
        this.realName = realName;
        this.alipayAccount = alipayAccount;
        this.amount = amount;
        this.status = status;
        this.requestTime = requestTime;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getUserNickname() {
        return userNickname;
    }

    public void setUserNickname(String userNickname) {
        this.userNickname = userNickname;
    }

    public String getUserAvatar() {
        return userAvatar;
    }

    public void setUserAvatar(String userAvatar) {
        this.userAvatar = userAvatar;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public String getAlipayAccount() {
        return alipayAccount;
    }

    public void setAlipayAccount(String alipayAccount) {
        this.alipayAccount = alipayAccount;
    }

    public double getAmount() {
        return amount;
    }

    public void setAmount(double amount) {
        this.amount = amount;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Date getRequestTime() {
        return requestTime;
    }

    public void setRequestTime(Date requestTime) {
        this.requestTime = requestTime;
    }

    public Date getProcessTime() {
        return processTime;
    }

    public void setProcessTime(Date processTime) {
        this.processTime = processTime;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    // 状态常量
    public static final String STATUS_PENDING = "PENDING"; 
    public static final String STATUS_APPROVED = "APPROVED";
    public static final String STATUS_REJECTED = "REJECTED";
} 